﻿<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" MasterPageFile="~/WebMaster/MasterPage.master"
    CodeFile="CompanyAdd.aspx.cs" Theme="WebMaster" Inherits="webapp4U.UI.Article" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>   
<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" Runat="Server">
<uc:Title ID="Title1" runat="server" ResourceKey='Company_CompanyAdd'  />
<br />

<table width="100%" align="center">
<tr>
    <td valign="top" style="padding-top:10pt;">
        
            <asp:ValidationSummary runat="server" ID="valChangePasswordSummary" ShowMessageBox="true" ShowSummary="false" />
            <p align="center">
                <asp:Label runat="server" ID="lblMsg" Font-Bold="true"></asp:Label>
            </p>
            <asp:Panel runat="server" ID="PanelUser">
                <table align="center" cellpadding="7" cellspacing="0" border="0">
                    <tr>
                        <td align="left" style="color:Red">
                            (*) <%=ResourceManager.GetString("Register_RequiredFields")%>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                        </td>
                        <td align="left">
                            <asp:Image runat="server" ID="imgLogo" Width="150" />
                        </td>
                    </tr>
                    
                    <tr>
                        <td align="right">
                            <span class="Required">*</span> <%=ResourceManager.GetString("Register_CompanyName")%>:</td>
                        <td>
                            <asp:TextBox ID="txtCompanyName" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                            <webapp4U:ReqFValid ControlToValidate="txtCompanyName" ResourceName="Register_CompanyName_error" runat="server" ID="ReqFValid2" />
                        </td>
                    </tr>
                    
                    <tr>
                        <td align="right">
                            Logo:
                        </td>
                        <td align="left">
                            <asp:FileUpload ID="PhotoFile" runat="server" Width="255" />
                            <asp:HiddenField ID="HPhotoFile" runat="server" />
                        </td>
                    </tr>
                    
                    <tr>
                        <td align="right">
                            <span class="Required">*</span> <%=ResourceManager.GetString("Register_Email")%>:</td>
                        <td>
                            <asp:TextBox ID="txtEmail" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                            <asp:RequiredFieldValidator SetFocusOnError="true" ControlToValidate="txtEmail" ID="ReqEmail" ErrorMessage="" runat="server" Display="none" />
                                
                            <asp:RegularExpressionValidator SetFocusOnError="true" Display="none" ID="RegEmail" runat="server"
                                ControlToValidate="txtEmail" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                        </td>
                    </tr>
                    
                    <tr>
                        <td align="right">
                            <span class="Required">*</span> <%=ResourceManager.GetString("Register_Address")%>:</td>
                        <td>
                            <asp:TextBox ID="txtAddess" MaxLength="250" runat="server" Width="250" />
                            <webapp4U:ReqFValid ControlToValidate="txtAddess" ResourceName="Register_Address_error" runat="server" ID="ReqFValid4" />
                        </td>
                    </tr>
                  
                    <tr>
                        <td align="right">
                            <span class="Required">*</span> <%=ResourceManager.GetString("Register_ContactPhone")%>:</td>
                        <td>
                            <asp:TextBox ID="txtPhone" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                            <webapp4U:ReqFValid ControlToValidate="txtPhone" ResourceName="Register_ContactPhone_error" runat="server" ID="ReqFValid3" />
                        </td>
                    </tr>
                    
                    <tr>
                        <td align="right">
                            &nbsp; <%=ResourceManager.GetString("Register_FaxNumber")%>:</td>
                        <td>
                            <asp:TextBox ID="txtFax"  MaxLength="250" runat="server" Width="250" />
                        </td>
                    </tr>
                  
                   <tr>
                        <td valign="top" align="right">Mô tả về công ty:</td>
                        <td style="font-size:0.7em">
                            <FTB:FreeTextBox id="txtBody"  
                            TabIndex="3"
                            toolbarlayout="FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink|InsertTable,EditTable,InsertImageFromGallery"
                            runat="Server"
                            Width="550px" Height="200px"
                            />
                        </td>
                    </tr>
                
                    <tr>
                        <td align="right" colspan="2">
                           <asp:LinkButton runat="server" Text=" Save " ID="btSave" OnClick="btSave_Click" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
       <br />
       <br />
             
        
    </td>
</tr>
</table>
       
</asp:Content>